<%@page language="java" contentType="text/html;charset=UTF-8"%>
<%@include file="/WEB-INF/core/common/top.jsp" %>
<%@taglib prefix="s" uri="/struts-tags"%>
<link type="text/css" rel="stylesheet" href="${ctx}/core/styles/validatorAuto.css" />
<script src="${ctx}/core/scripts/jquery_last.js" type="text/javascript" charset="UTF-8"></script>
<script src="${ctx}/core/scripts/formValidator.js" type="text/javascript" charset="UTF-8"></script>
<script src="${ctx}/core/scripts/formValidatorRegex.js" type="text/javascript" charset="UTF-8"></script>

<script language="javascript">
<!--
	$(document).ready(function(){
		$.formValidator.initConfig({formid:"mainForm",onerror:function(msg){showMessage(msg);},onsuccess:function(){$("#submitButton").attr('disabled',true);}});
		$("#confBlockblocktype").formValidator().inputValidator({min:1,onerror:"<s:text name='cep.confBlock.blocktype.warning'/>"});
		$("#confBlockblackorwhite").formValidator().inputValidator({min:1,max:255,onerror:"<s:text name='cep.confBlock.blackorwhite.warning'/>"});
		$("#confBlockvalue").formValidator().inputValidator({min:1,max:255,onerror:"<s:text name='cep.confBlock.value.warning'/>"});
    });	
//-->	
</script>

<body style="overflow-x:hidden;overflow-y:auto;">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
<%@include file="/WEB-INF/core/common/message.jsp"  %>
  <tr><td><table border="0" align="center" cellpadding="0" cellspacing="0">
    <td width="8" height="27"><img src="${ctx}/core/images/button_05.gif" width="8" height="27" /></td>
    <td width="99%" align="left" background="${ctx}/core/images/button_06.gif" class="bluecu">&nbsp;<img src="${ctx}/core/images/icon_04.gif" />&nbsp;<s:text name="cep.confBlock.title" /></td>
    <td width="8"><img src="${ctx}/core/images/button_07.gif" width="8" height="27" /></td>
    </table>
    </td>
  </tr>
  
  <tr>
    <td colspan="3" class="biaoge">	
	<form name="mainForm" id="mainForm" method="post" action="${ctx}/attributeManage/confBlock.action">  
	
						        	   <s:if test='"add".equals(pageState)'>
						        	       <input type="hidden" name="act" id="act" value="addSubmit"/>
						        	   </s:if>
						        	   <s:if test='"edit".equals(pageState)'>
									     <input type="hidden" name="act" id="act" value="editSubmit"/>
									   </s:if>
       	


		
	  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    
  
	  <tr>

	      <td class="tabulation" colspan="3"><div style="position:relative">
	
				        <table width="100%" border="0" cellpadding="0" cellspacing="1" bordercolor="#FFFFFF">
				        		<input type="hidden" name="confBlock.blockid" value="<s:property value='confBlock.blockid'/>">
						        <tr align="left">
							        <td width="3%" bgcolor="#DDE4EA" nowrap="nowrap">&nbsp;&nbsp;<s:text name="cep.confBlock.blocktype" />&nbsp;<font color="red">*</font>&nbsp;</td>
							        <td bgcolor="#DDE4EA" height="25">&nbsp;
							        <s:if test='"edit".equals(pageState)'>
							        	<s:if test='confBlock.blocktype==1'><s:text name="cep.confBlock.blocktype.1" /></s:if>
							        	<s:if test='confBlock.blocktype==0'><s:text name="cep.confBlock.blocktype.0" /></s:if>
							        	<input type="hidden" name="confBlock.blocktype" id="confBlockblocktype" value="<s:property value='confBlock.blocktype'/>"/>
							        </s:if>
							        <s:else>
							            <select name="confBlock.blocktype" id="confBlockblocktype">
							            	<option value=""></option>
							            	<option value="1" <s:if test='confBlock.blocktype==1'>selected</s:if> ><s:text name="cep.confBlock.blocktype.1" /></option>
							            	<option value="0" <s:if test='confBlock.blocktype==0'>selected</s:if>><s:text name="cep.confBlock.blocktype.0" /></option>
							            </select>							        
							        </s:else>
							        </td>
							        <td width="3%" bgcolor="#DDE4EA" nowrap="nowrap">&nbsp;&nbsp;<s:text name="cep.confBlock.blackorwhite" />&nbsp;<font color="red">*&nbsp;</font></td>
							        <td bgcolor="#DDE4EA">&nbsp;
							        <s:if test='"edit".equals(pageState)'>
							        	<s:if test='confBlock.blackorwhite==1'><s:text name="cep.confBlock.blackorwhite.1" /></s:if>
							        	<s:if test='confBlock.blackorwhite==0'><s:text name="cep.confBlock.blackorwhite.0" /></s:if>
							        	<input type="hidden" name="confBlock.blackorwhite" id="confBlockblackorwhite" value="<s:property value='confBlock.blackorwhite'/>"/>
							        </s:if>
							        <s:else>
							            <select name="confBlock.blackorwhite" id="confBlockblackorwhite">
							            	<option value=""></option>
							            	<option value="1" <s:if test='confBlock.blackorwhite==1'>selected</s:if> ><s:text name="cep.confBlock.blackorwhite.1" /></option>
							            	<option value="0" <s:if test='confBlock.blackorwhite==0'>selected</s:if>><s:text name="cep.confBlock.blackorwhite.0" /></option>
							            </select>
							        </s:else>
							        </td>
							        
							    </tr> 
							    <tr align="left">		    
							        <td width="3%" bgcolor="#DDE4EA" nowrap="nowrap">&nbsp;&nbsp;<s:text name="cep.confBlock.flag" /></td>
							        <td bgcolor="#DDE4EA">&nbsp;
							            <select name="confBlock.flag" id="confBlockflag">
							            	<option value="1" <s:if test='confBlock.flag==1'>selected</s:if> ><s:text name="cep.confBlock.flag.yes" /></option>
							            	<option value="0" <s:if test='confBlock.flag==0'>selected</s:if>><s:text name="cep.confBlock.flag.no" /></option>
							            </select>
							        </td>
							        <td width="3%" bgcolor="#DDE4EA" nowrap="nowrap">&nbsp;&nbsp;<s:text name="cep.confBlock.value" />&nbsp;<font color="red">*</font>&nbsp;</td>
							        <td bgcolor="#DDE4EA">&nbsp;
							            <input type="text" id="confBlockvalue" name ="confBlock.value" value="<s:property value='confBlock.value'/>" class="textbox_css" style="width:150px"/>
							        </td>
							    </tr>  
			    		        <tr>
						        	<td height="20" colspan="16" align="right" bgcolor="#DDE4EA">
						        	   <input type="submit" id="savebtn" class="btn" name="save" value="<s:text name='button.save' />" />
                                       <input type="button" class="btn" name="btnreturn" onclick="document.location.href='confBlock.action'" value="<s:text name='button.return' />" />
							        </td>
						        </tr>		       
					       
						</table> 
				</div>
		  </td>

    </tr>

	      </table>

	 </form>

    </td></tr></table>
</body>
